package com.ruoyi.backend.mapper;

import com.ruoyi.backend.pojo.Field;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FieldMapper {
    void upload(Field field);

    void delete(Integer investigateId);

    void update(Field field);

    List<Field> search(@Param("mineId") String mineId,
                       @Param("investigateType") String investigateType,
                       @Param("investigateName") String investigateName,
                       @Param("investigateUnit") String investigateUnit);

    List<Field> searchAll();

    Integer getCountId(Integer investigateId);
}
